
#ifndef _GEOPOINT_SHAPEFILE_H
#define _GEOPOINT_SHAPEFILE_H

#include <stdlib.h>

typedef struct _geopoint_shapefile_t {
	FILE *shp_fp;
	FILE *shx_fp;
	
	int filesize;
	
	int shape_type;
	int num_records;
	int num_max_records;
	int *pan_rec_offset;
	int *pan_rec_size;
	
	double min_bounds[4];
	double max_bounds[4];
} geopoint_shapefile_t;

void geopoint_shapefile_init (geopoint_shapefile_t *sf);
int geopoint_shapefile_open (geopoint_shapefile_t *sf, const char *filename);
void geopoint_shapefile_close (geopoint_shapefile_t *sf);

#endif
